package com.example.authority.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;

    import lombok.experimental.Accessors;


/**
 * @program: authority-hm-0.0.1
 * @ClassName:Books
 * @description: 图书管理 实体类
 * @author:dyy
 * @Version 3.0
 **/

@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_books")
@Schema(title = "Books对象", description = "图书管理")
public class Books implements Serializable{

private static final long serialVersionUID=1L;

        @Schema(title = "序列号")
                @TableId(value = "id", type = IdType.AUTO)
                @ExcelProperty("序列号")
private Long id;

        @Schema(title = "图书名称")
    @TableField("name")
        @ExcelProperty("图书名称")
private String name;

        @Schema(title = "图书封面")
    @TableField("img")
        @ExcelProperty("图书封面")
private String img;

        @Schema(title = "图书文件")
    @TableField("file")
        @ExcelProperty("图书文件")
private String file;

        @Schema(title = "发布日期")
    @TableField("date")
        @ExcelProperty("发布日期")
private String date;

        @Schema(title = "联系方式")
    @TableField("phone")
        @ExcelProperty("联系方式")
private String phone;


        }
